package edu.nf.ch01.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangl
 * @date 2025/5/9
 */
@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        //返回视图名称，由视图解析器拼接前缀和后缀，
        //形成完整的访问路径
        ///WEB-INF/jsp/index.jsp
        return "index";
    }
}